

<div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="title" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入规则组名称" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>



  <div class="layui-form-item">
    <label class="layui-form-label">规则</label>
    <div class="layui-input-inline" style="width: auto;">
      <table class="layui-hidden" id="listTable" lay-filter="listTable"></table>
      <div class="zzjz">正在加载</div>










 <!--      <script type="text/html" template lay-url="/index/Jurisdiction/get_list" lay-done="layui.data.done(d);">
        {{#  layui.each(d.data, function(index, item){ }}
          <input type="checkbox" name="rules[{{ item.id }}]" lay-skin="primary" title="{{ item.title }}"  {{# layui.each(d.params.rule_arr, function(indexs, items){ }} {{ items == item.id ? 'checked' : '' }}   {{#  }); }} value="{{ item.id }}">&nbsp;&nbsp;
        {{#  }); }}
      </script> -->

    </div>
  </div>






  <div class="layui-form-item">
    <label class="layui-form-label">审核状态</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="checkbox" lay-filter="switch" name="status" {{ d.params.status ? 'checked' : '' }} lay-skin="switch" lay-text="通过|关闭" value="1">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="hidden" name="id" id="id" value="{{ d.params.id || '' }}">
        <input type="hidden" name="rules" id="rules" value="{{ d.params.rules || '' }}">
      </script>
      <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
    </div>
  </div>




</div>




<script>
var editObj=null,ptable=null,treeGrid=null,tableId='listTable',layer=null;
setTimeout( function(){
  layui.use('menu_group_add', layui.factory('menu_group_add'));
}, 500 );

// layui.use('auth', layui.factory('auth'));
//form.render();


// layui.data.done = function(d){
//   layui.use(['admin', 'form'], function(){
//     var $ = layui.$
//     ,form = layui.form;
//     form.render(); //渲染该模板下的动态表单




//   });
// };
</script>